$OpenBSD: patch-ui_qt_compiled_filter_output_cpp,v 1.3 2017/06/02 01:52:01 sthen Exp $

cope with old libpcap

Index: ui/qt/compiled_filter_output.cpp
--- ui/qt/compiled_filter_output.cpp.orig
+++ ui/qt/compiled_filter_output.cpp
@@ -89,7 +89,7 @@ void CompiledFilterOutput::compileFilter()
                 if (pd == NULL)
                     break;
                 g_mutex_lock(pcap_compile_mtx);
-                if (pcap_compile(pd, &fcode, compile_filter_.toUtf8().constData(), 1, 0) < 0) {
+                if (pcap_compile(pd, &fcode, (char *)compile_filter_.toUtf8().constData(), 1, 0) < 0) {
                     compile_results.insert(interfaces, QString("%1").arg(g_strdup(pcap_geterr(pd))));
                     g_mutex_unlock(pcap_compile_mtx);
                     ui->interfaceList->addItem(new QListWidgetItem(QIcon(":expert/expert_error.png"),interfaces));
